package cn.beyond.vehicleManagement.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * 驾驶员违章记录
 */
public class BreakRule implements Serializable {
    private Integer id;//序号
    private Integer vehicle_id;//涉事车辆
    private String break_rule_address;//违章地点
    private Integer driver_id;//驾驶员
    private Date break_rule_date;//违章时间
    private Integer is_deduct_marks;//是否扣分
    private Integer deduct_marks;//所扣分数,超过12分，驾照则无效

    public BreakRule() {
    }

    public BreakRule(Integer id, Integer vehicle_id, String break_rule_address, Integer driver_id, Date break_rule_date, Integer is_deduct_marks, Integer deduct_marks) {
        this.id = id;
        this.vehicle_id = vehicle_id;
        this.break_rule_address = break_rule_address;
        this.driver_id = driver_id;
        this.break_rule_date = break_rule_date;
        this.is_deduct_marks = is_deduct_marks;
        this.deduct_marks = deduct_marks;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getVehicle_id() {
        return vehicle_id;
    }

    public void setVehicle_id(Integer vehicle_id) {
        this.vehicle_id = vehicle_id;
    }

    public String getBreak_rule_address() {
        return break_rule_address;
    }

    public void setBreak_rule_address(String break_rule_address) {
        this.break_rule_address = break_rule_address;
    }

    public Integer getDriver_id() {
        return driver_id;
    }

    public void setDriver_id(Integer driver_id) {
        this.driver_id = driver_id;
    }

    public Date getBreak_rule_date() {
        return break_rule_date;
    }

    public void setBreak_rule_date(Date break_rule_date) {
        this.break_rule_date = break_rule_date;
    }

    public Integer getIs_deduct_marks() {
        return is_deduct_marks;
    }

    public void setIs_deduct_marks(Integer is_deduct_marks) {
        this.is_deduct_marks = is_deduct_marks;
    }

    public Integer getDeduct_marks() {
        return deduct_marks;
    }

    public void setDeduct_marks(Integer deduct_marks) {
        this.deduct_marks = deduct_marks;
    }

    @Override
    public String toString() {
        return "BreakRule{" +
                "id=" + id +
                ", vehicle_id=" + vehicle_id +
                ", break_rule_address='" + break_rule_address + '\'' +
                ", driver_id=" + driver_id +
                ", break_rule_date=" + break_rule_date +
                ", is_deduct_marks=" + is_deduct_marks +
                ", deduct_marks=" + deduct_marks +
                '}';
    }
}
